package com.jyhg.ane.component.dialog
{
	import com.distriqt.extension.dialog.Dialog;
	
	/**
	 * JANEMultiChoiceDialog
	 * @author: Jonny.Hong
	 * @date: 2014-2-26
	 */
	public class JANEMultiChoiceDialog extends JANEDialog
	{
		public var type:String = JANEDialogType.CHOICE_DIALOG;
		public function JANEMultiChoiceDialog(id:int)
		{
			_id = id;
			super();
		}
		
		public function showMultipleChoiceDialog(title:String = "", message:String = "",choiceArray:Array = null):void
		{
			if(!Dialog.isSupported)
			{
				trace("Dialog is not Supported");
				throw new Error("Dialog is not Supported");
			}
			else
			{
				Dialog.service.showMultipleChoiceDialog(_id,title, message,  choiceArray);
			}
		}
		
		override public function close():void
		{
			super.close();
		}
	}
}